# Fly3D plugin Wizard

This is the Visual C++ wizard for creating Fly3D plugins. It can be used with Visual C++ version 5.0 or 6.0.

To install the wizard, copy the flyplugin.awx and flyplugin.hlp files to the Visual Studio folder where you find other .awx files.

After coping the files, open Visual C++ and create a new project. Select Fly3D plugin Wizard and follow the two wizard steps:

Step 1: Plugin Classes
Step 2: Classes Parameters
Step 3: SDK Path

After the wizard is finished, the project for the plugin dll will be ready to compile.

# Fly3D plugin Wizard

Step 1 - Plugin Classes 

In the first step you should list all classes your plugin will enumerate.

Type the class name in the edit box and click the Add button.

You can also use the Up/Down buttons to change then order the classes will be eumerated. 
# Fly3D plugin Wizard

Step 2 – Classes Parameters

In this step, you can specify the parameters your new classes will export. These are the class members that will be saved, loaded and edited by the engine. Each class can have as many parameters as needed. The parameter type is a integer value and must be selected from:

Value (int)	Description	Data type	Data size (sizeof)	
‘a’	angle	float	4	
‘i’	integer	int	4	
‘f ‘	floating point	float	4	
‘v’	float vector (x,y,z)	vector	12	
‘c’	float color (r,g,b)	vector	12	
‘b’	bezier curve	bezier_curve *	4	
‘b’	bezier curve	bezier_patch *	4	
‘3’	3ds mesh model	mesh *	4	
‘m’	fao animate mesh	anim_mesh *	4	
‘w’	wav sound object 	sound *	4	
‘p’	picture file	int	4	
‘o’	stock object	bsp_object *	4	
‘d’	active object	bsp_object *	4	

Parameters can be added later inside Visual C++. To do so, just add it to the class definition and update the get_param_desc function.

Plugin parameters can also be values bigger then 255 and this will mean a pointer to the object with this type id. The object can be from any other plugin and will be a pointer to the specific object (not to the base object dyn_object).
# Fly3D plugin Wizard

Step 3 – SDK Path

In the final step you need to specify the FlySDK path.

Use the browse button to select the SDK path. A directory browse window will show up allowing you to select a folder.

An include and library path for the SDK will be added to the project settings and required libraries will be added to the project. This allows you to compile the wizard code without any other compiler setting changes just after its creation.